package com.sgb.goods.widget.pop.adapter;

import android.content.Context;
import android.widget.TextView;

import com.sgb.goods.BR;
import com.sgb.goods.R;
import com.sgb.goods.entity.AttributeViewEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;


/**
 * 描述：商品属性第二级列表适配器
 *
 * @author qiangHeNoo
 * <p>
 * 时间：2021.12.09
 */
public class GoodsAttributeChildAdapter extends BaseRecycleAdapter<AttributeViewEntity.TypeBean> {

    public GoodsAttributeChildAdapter(Context context, List<AttributeViewEntity.TypeBean> data) {
        super(context, R.layout.goods_item_attribute_child, data);
    }

    @Override
    public void convert(ItemViewHolder holder, final AttributeViewEntity.TypeBean entity) {
        holder.setBinding(BR.viewModel, entity);
        holder.itemView.setClickable(true);
    }

}
